package com.bob.blogs.service.impl;

import com.bob.blogs.mapper.BlogMapper;
import com.bob.blogs.model.po.BlogPo;
import com.bob.blogs.service.IBlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bob
 * @create 2019-07-05
 */
@Service
public class BlogServiceImpl implements IBlogService {
    @Autowired
    private BlogMapper blogMapper;

    @Override
    public List<BlogPo> getAllBlog() {
        return blogMapper.findAll();
    }
}
